﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcMusicStore.Models;

namespace MvcMusicStore.Controllers
{
    public class SurveyController : Controller
    {
        //Exposes a collection property for each table in the DB.
        TeacherHarvestDBEntities storeDB = new TeacherHarvestDBEntities();
        //
        // GET: /Survey/

        public ActionResult Index()
        {
            var question = from survey in storeDB.Surveys select survey.QuestionID;

            ViewBag.q = question;

            ViewBag.Question1 = "Was this professor clear when teaching subject matter?";
            ViewBag.Question2 = "Was the professor helpful to students during class and/or office hours?";
            ViewBag.Question3 = "Did the professor keep your interest in the subject matter during class?";
            ViewBag.Question4 = "Comment on the professor:";
            ViewBag.Question5 = "Comment on the course:";
            return View();
        }

    }
}
